extends "../cex___toolman/cex___toolman.gd"
func _info():
	pass

func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "猪"
	lv = 2
	attCoe.atkRan = 1
	attCoe.atk = 10 / 8.5 * 2 / 2
	attCoe.maxHp = 600 / 112.5 / 2
	attAdd.spd += 1
	addSkillTxt("撞晕：普攻有10%概率使敌方附加1层<眩晕>；攻击眩晕敌人增加20点伤害")

func _onAtkChara(atkinfo):
	._onAtkChara(atkinfo)
	if atkinfo.hitCha != self && atkinfo.atkType == Chara.AtkType.NORMAL && !atkinfo.isMiss:
		if atkinfo.hitCha.hasBuff("b_xuanyun"):
			atkinfo.hurtVal += 20
		if sys.rndPer(10):
			atkinfo.hitCha.addBuff(ctrl.b_xuanyun.new(1))
		